#include<stdio.h>
#include<string.h>
#include<assert.h>
int rotation(char* s1, const char* s2)
{
	assert(s1 && s2);
	char* p1 = s1;
	int len = strlen(s1);
	memmove(s1 + len, s1, len);
	strstr(s1, s2);
	if (strstr(s1, s2) != NULL)
		return 1;
	else
		return 0;
}
int main()
{
	char arr1[49] = "abcdef";
	char arr2[] = "bcdefa";
	int ret = rotation(arr1, arr2);
	if (ret == 1)
		printf("ok\n");
	else
		printf("no\n");
	return 0;
}